<!DOCTYPE html>
<html>
<head>
    <title>Page with script</title>
</head>
<body>
    <script type="text/javascript">
        parent.window.postMessage("script ran", "*");
    </script>
</body>
</html>